package cn.stylefeng.guns.modular.hx.basic.service;

import java.util.List;

import cn.stylefeng.guns.modular.basic.model.params.BasicGoodsParam;
import cn.stylefeng.guns.modular.hx.storage.entity.HxStorageStock;
import cn.stylefeng.guns.modular.hx.storage.model.params.HxStoragePutDetailedParam;
import cn.stylefeng.guns.modular.hx.storage.model.params.HxStorageStockParam;
import org.springframework.web.multipart.MultipartFile;

import com.baomidou.mybatisplus.extension.service.IService;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.hx.basic.entity.HxBasicGoods;
import cn.stylefeng.guns.modular.hx.basic.model.params.HxBasicGoodsParam;
import cn.stylefeng.guns.modular.hx.basic.model.result.HxBasicGoodsResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;

/**
 * <p>
 * 商品信息表 服务类
 * </p>
 *
 * @author zhucx
 * @since 2023-06-18
 */
public interface HxBasicGoodsService extends IService<HxBasicGoods> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2023-06-18
     */
    void add(HxBasicGoodsParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2023-06-18
     */
    void delete(HxBasicGoodsParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2023-06-18
     */
    void update(HxBasicGoodsParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-06-18
     */
    HxBasicGoodsResult findBySpec(HxBasicGoodsParam param,Long operateId);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2023-06-18
     */
    List<HxBasicGoodsResult> findListBySpec(HxBasicGoodsParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-06-18
     */
     LayuiPageInfo findPageBySpec(HxBasicGoodsParam param,String condition,Long operateId);

    LayuiPageInfo findYpdwPageBySpec(HxBasicGoodsParam param);

    LayuiPageInfo findGjkcWgxPageBySpec(HxBasicGoodsParam param);
 	
 	boolean saveBatchList(List<HxBasicGoodsParam> list);

	ResponseData getExceldata(MultipartFile file, HxBasicGoodsParam hxBasicGoodsParam, ResponseData data) throws Exception;

	ResponseData getExceldataUpdate(MultipartFile file, HxBasicGoodsParam hxBasicGoodsParam, ResponseData data) throws Exception;

    LayuiPageInfo findOneBySpec(HxBasicGoodsParam basicGoodsParam, String condition, Long operateId);

    List<HxBasicGoodsResult> findListBySpecAppOut(HxBasicGoodsParam goodsParam, String condition, Long operateId);

    ResponseData gcjy(HxStorageStockParam hxStorageStockParam);

	List<HxBasicGoodsResult> findlistAllBySpec(HxBasicGoodsParam hxBasicGoodsParam, String condition, Long operateId);
    void taskAppointment2();

    void updategoodsrate(HxBasicGoodsParam hxBasicGoodsParam);

    void updategoodsrate1(HxBasicGoodsParam hxBasicGoodsParam);

    void updategoodsrate2(HxBasicGoodsParam hxBasicGoodsParam);


    void updategoodsrate3(HxBasicGoodsParam hxBasicGoodsParam);

    LayuiPageInfo findWHPageBySpec(HxBasicGoodsParam hxBasicGoodsParam);
}
